import {mapGetters} from "vuex"
export default {
	data() {
		return {
			
		}
	},
	computed:{
		...mapGetters("m_cart",["total"]),
	},
	
	methods:{
		setBrage(){
			var num = this.total;
			
			uni.setTabBarBadge({
			  index: 2,
			  text:num + "" 
			});
		}
	},
	
	onShow(){
		this.setBrage()
	}
}